module.exports = {
    publicPath: "./",
    outputDir: "dist",
    chainWebpack: (config) => {
        config.externals({
          layer: 'layer',
          'AMap': 'AMap',
          'AMapUI': 'AMapUI'
        }),
        config.resolve.alias.set('vue$','vue/dist/vue.js')
    },
    css: {
        // 将组件内部的css提取到一个单独的css文件（只用在生产环境）
        // 也可以是传递给 extract-text-webpack-plugin 的选项对象
        extract: true, // 允许生成 CSS source maps?
        sourceMap: false, // pass custom options to pre-processor loaders. e.g. to pass options to // sass-loader, use { sass: { ... } }
        loaderOptions: {}, // Enable CSS modules for all css / pre-processor files. // This option does not affect *.vue files.
        modules: false
    },
    productionSourceMap: false, // 关闭map文件打包
    // pwa: {}, // configure webpack-dev-server behavior
    pluginOptions: {
        // ...
    }

}